package TestDemo.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;


//在java配置类中添加@ServletComponentScan注解，
// 这样Spring Boot会自动扫描并注册所有的Servlet、Filter和Listener组件。
@ServletComponentScan

@SpringBootApplication
public class TliasWebApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext run = SpringApplication.run(TliasWebApplication.class, args);
        System.out.println("启动成功");
    }

}
